<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Video</title>
    <style>
        html, body, .main-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
            padding: 0;
            margin: 0;
        }

        video {
            object-fit: fill;
        }
    </style>
</head>
<body>
<div class="main-container">
    <video width="100%" height="100%" id="videoid">
        <source id="sourceid" src="" type="video/mp4">
    </video>
</div>
<script type="text/javascript">
    function findGetParameter(parameterName) {
        var result = null,
            tmp = [];
        var items = location.search.substr(1).split("&");
        for (var index = 0; index < items.length; index++) {
            tmp = items[index].split("=");
            if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
        }
        return result;
    }

    var videoFile = findGetParameter("video");
    var source = document.getElementById("videoid");
    source.src = videoFile ? videoFile : "demo.mp4";
    var video = document.getElementById("videoid");
    video.controls = false;

    video.play();
</script>
</body>
</html>